<template>
	<view class="container">
		<view 
			class="card" 
			v-for="(item, index) in cardList" 
			:key="index" 
			@click="onWithdrawClick">
			<image class="image" src="/static/7.jpg" mode="aspectFill"></image>
			<view class="footer">
				<text class="title">北京四日适合拍摄秘境-故宫</text>
				<image class="image2" src="../../../static/向右3.png"></image>
			</view>
		</view>
	</view>
</template>

<style>
	.container {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 16px;
	}

	.card {
		width: 90%;
		border-radius: 8px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		overflow: hidden;
		background-color: white;
		margin-bottom: 16px;
	}

	.image {
		width: 100%;
		height: 200px;
	}

	.footer {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 16px;
	}

	.title {
		font-size: 16px;
		color: #333;
		margin-bottom: 5px;
		margin-left: -10px;
	}

	.image2 {
		width: 20px;
		height: 20px;
	}
</style>

<script>
	export default {
		data() {
			return {
				cardList: [1, 2, 3] // 假设你有三个相同的卡片
			}
		},
		methods: {
			onWithdrawClick() {
				uni.navigateTo({
					url: "/pages/szy-YouHuiTuanGou/xiangqing/xiangqing"
				})
			}
		}
	}
</script>
